package com.gxa.service.investment.impl;

import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.gxa.entity.investment.Project;
import com.gxa.entity.investment.ProjectTrace;
import com.gxa.mapper.investment.ProjectTraceMapper;
import com.gxa.service.investment.ProjectTraceService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 项目跟踪单 服务实现类
 * </p>
 *
 * @author yjl
 * @since 2022-10-17 03:04:36
 */
@Service
public class ProjectTraceServiceImpl extends ServiceImpl<ProjectTraceMapper, ProjectTrace> implements ProjectTraceService {

    @Autowired
    private ProjectTraceMapper projectTraceMapper;

    @Override
    public PageInfo queryAll(Integer pageNum, Integer pageSize) {
        Page<ProjectTrace> page1 = PageHelper.startPage(pageNum,pageSize);
        List<ProjectTrace> projectTraceList = this.projectTraceMapper.selectList(null);
        PageInfo<ProjectTrace> pageInfo = new PageInfo<ProjectTrace>(projectTraceList);
        return pageInfo;
    }


}
